package com.ysd.ziyuanshiyongtongji.dao;


import java.util.List;

import com.ysd.ziyuanshiyongtongji.model.ReadRoom;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.transaction.annotation.Transactional;

/**
 * IRead_roomDao
 */
public interface IReadRoomDao extends JpaRepository<ReadRoom, Integer>,JpaSpecificationExecutor<ReadRoom>{
    @Transactional
    @Modifying
    @Query(value = "delete from member where id in (:ids)",nativeQuery = true)
      public int deletebatch(@Param("ids") List<Integer> ids); 

    /*   @Modifying
      @Query(value = "update read_room set status = 1 where rid = ?1 ", nativeQuery = true)
      int delete(Integer id); */
}